Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@tiptap/extension-document
Advanced tools
@tiptap/extension-document is an extension for the Tiptap editor, which is a highly customizable rich-text editor framework for the web. This extension provides the basic document structure for Tiptap, allowing you to define the root node of your editor's document schema.
Basic Document Structure
This feature allows you to define the basic structure of your document. The 'content' property specifies that the document can contain one or more block elements.
const Document = Document.extend({
content: 'block+',
});
Custom Document Structure
This feature allows you to customize the document structure. In this example, the document must start with a heading followed by one or more block elements.
const CustomDocument = Document.extend({
content: 'heading block+',
});
ProseMirror is a toolkit for building rich-text editors on the web. The prosemirror-model package provides a way to define document schemas, similar to @tiptap/extension-document. However, ProseMirror is more low-level and requires more configuration compared to Tiptap.
Slate is another framework for building rich-text editors. It provides a more flexible and customizable approach to defining document structures and content. While Slate offers more control, it also requires more setup and understanding of its API compared to Tiptap.
Tiptap is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
FAQs
document extension for tiptap
The npm package @tiptap/extension-document receives a total of 973,096 weekly downloads. As such, @tiptap/extension-document popularity was classified as popular.
We found that @tiptap/extension-document demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.